//
//  UserAccount.h
//  weibo-OC
//
//  Created by diyuyma on 16/3/4.
//  Copyright © 2016年 zhangkaiyun. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserAccount : NSObject

- (instancetype)initWithDict:(NSDictionary *)dict;
- (void)nitWithDict:(NSDictionary *)dict;
- (void)saveAccount;
- (UserAccount *)loadAccount;

// 用于调用access_token，接口获取授权后的access token
@property (nonatomic, copy)NSString *access_token;
// 用户名
@property (nonatomic, copy)NSString *name;
// 用户头像地址 String
@property (nonatomic, copy)NSString *avatar_large;
// 当前授权用户的UID
@property (nonatomic, copy)NSString *uid;
// 过期日期  开发者的过期时间 是 5年  普通用户的过期时间是 3天
@property (nonatomic, strong)NSDate *expires_date;
// access_token的生命周期，单位是秒数
@property (nonatomic, assign)NSTimeInterval expires_in;

@end
